home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- SHELL_____SHELLSHELLSHELL_COMMAND_______COMMANDCOMMANDCOMMAND
-
-
-
- Function________FunctionFunctionFunction
-
- The SHELL command allows those users experiencing dif-
- ficulty using the DOS SHELL= option in CONFIG.SYS to
- actually change the name and drive used by DOS to
- reload COMMAND.COM (such as after execution of a com-
- piled BASIC program).
-
-
- BACKGROUND__________BACKGROUNDBACKGROUNDBACKGROUND
-
- From personal experience, I have not been able to use
- the SHELL= option as advertised in the DOS 2.0 manual.
- Whenever a shell statement is present in CONFIG.SYS,
- DOS seems to check at initialization whether the indi-
- cated file exists but a SET command issued afterwards
- shows:
-
- COMPSPEC=A:\COMMAND.COM
-
- which is what normally shows when you don't have a
- CONFIG.SYS file or did not include a SHELL= option in
- CONFIG.SYS. A side effect seems to be that the AUTOEX-
- EC.BAT processing is also skipped whenever you include
- a SHELL= option. Aside from that, DOS always reloads
- COMMAND.COM from my A drive no matter what I try. (I
- want SHELL=D:\COMMAND.COM).
-
- As far as I can tell this is a bug (perhaps related to
- the fact that I run a non-IBM 23 Meg harddisk). Rather
- than trying to fix it, the SHELL.COM program was writ-
- ten, which replaces the string which DOS uses as a
- filename (INT 21H AH=3D) to reload the command proces-
- sor whenever necessary. The location of the string in
- DOS 2.0 is at hex offset 939 in the segment pointed to
- by hex interrupt 21.
-
-
- Syntax______SyntaxSyntaxSyntax
-
-
- +-----------------------------------------------------------------+
- | |
- | SHELL |
- | or |
- | SHELL [d:][path]filename[.ext] |
- | |
- +-----------------------------------------------------------------+
-
-
-
-
-
- 1
-
-
-
-
-
-
-
-
- Operation_________OperationOperationOperation
-
- If you specify the SHELL command without operands, the
- current shell name is displayed. If you specify an
- operand, it will replace the current shell name. The
- shell name is the name of the file that DOS will
- reload whenever the transient portion of COMMAND.COM
- (or replacement) is overlaid in memory.
-
-
- Notes_____NotesNotesNotes
-
- If the specified file does not exist, you will get
- into a problem the next time that DOS needs to reload
- the command processor. DOS will prompt you to insert a
- diskkette containing COMMAND.COM into drive A, regard-
- less of the name of the current shell. You should
- interpret this prompt to actually mean that the shell
- name you specified does not exist. If you specified a
- floppy drive, you may be able to switch diskettes. In
- all other cases, your only recourse is to reboot DOS.
-
- Also, the SET command always displays:
-
- COMSPEC=A:\COMMAND.COM
-
- regardless of the actual shell being used. Use the
- SHELL command without operands to display the actual
- shell name.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 2
-
-
-
- 2
-
-
-
-